﻿#include<iostream>
#include<set>

void test01()
{
	std::set<int> s1;
	std::pair<std::set<int>::iterator, bool> ret = s1.insert(6);

	if (ret.second)
	{
		std::cout << "第一次插入成功" << '\n';
	}
	else
	{
		std::cout << "第一次插入失败" << '\n';
	}

	ret = s1.insert(6);

	if (ret.second)
	{
		std::cout << "第二次插入成功" << '\n';
	}
	else
	{
		std::cout << "第二次插入失败" << '\n';
	}

	std::multiset<int> ms;
	ms.insert(66);
	ms.insert(66);
	ms.insert(66);

	for (std::multiset<int>::iterator it = ms.begin(); it != ms.end(); ++it)
	{
		std::cout << *it << " ";
	}
	std::cout << '\n';

}





int main()
{
	test01();

	return 0;
}